import java.io.File;
import java.io.IOException;
import java.text.ParseException;
import java.util.ArrayList;

import etxt2db.api.ClassificationExecutor;
import etxt2db.api.ClassificationModel;
import etxt2db.api.ClassificationModelCreator;


public class SolutionCtxt2dbDictionaryRegexJoin {
	public static void main(String[] args) throws IOException, ParseException{
		ClassificationModelCreator creator = new ClassificationModelCreator();
		ClassificationModel model = creator.createDictionaryClassificationModel(new File("C:\\Users\\Goncalo\\Desktop\\dict.txt"));
		File testingFile = new File("C:\\Users\\Goncalo\\Desktop\\Teste.txt");
		ClassificationExecutor exec = new ClassificationExecutor();
		System.out.println(exec.getClassifiedString(testingFile, model, null));
	}
}
